<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let day=+prompt("请输入天数")
        let year = day/+365
        while(day<1000){
            day=+prompt("请输入天数")
            alert("请重新输入")
        }alert(year)
    </script>
</body>
</html>